package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanDemandUpload {
    private Long id;
    private Long applyId;
    private Integer itemId;
    private Date createDt;
    private Date updateDt;
    private Integer adminId;
    private String fileName;
    private String oldName;
    private String newFileName;
    private String itemName;
    public String getOldName() {
		return oldName;
	}

	public void setOldName(String oldName) {
		this.oldName = oldName;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getNewFileName() {
		return newFileName;
	}

	public void setNewFileName(String newFileName) {
		this.newFileName = newFileName;
	}

    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanDemandUpload)) {
            return false;
        }
        LoanDemandUpload other = (LoanDemandUpload) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getItemId() == null ? other == null : this.getItemId().equals(other.getItemId())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getAdminId() == null ? other == null : this.getAdminId().equals(other.getAdminId())
            && this.getFileName() == null ? other == null : this.getFileName().equals(other.getFileName());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getItemId() != null) {
            hash *= getItemId().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getAdminId() != null) {
            hash *= getAdminId().hashCode();
        }
        if (getFileName() != null) {
            hash *= getFileName().hashCode();
        }
        return hash;
    }
}